package com.cgq.pro.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.cgq.base.dao.impl.BaseDaoImpl;
import com.cgq.pro.dao.PhotoTypeDao;
import com.cgq.pro.entity.PhotoType;

@Repository
public class PhotoTypeDaoImpl extends BaseDaoImpl<PhotoType> implements
		PhotoTypeDao {
	@SuppressWarnings("unchecked")
	public List<PhotoType> findByType(String type) {
		String hql="from PhotoType o where o.type='"+type+"'";
		return hibernateTemplate.find(hql);
	}
}
